package com.software.questioncenter.service;

import com.software.questioncenter.entity.Question;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Author: wjx
 * Description: 题目Question的服务层
 */
public interface QuestionService {
//    void update(Question question);
//    boolean deleteById(Integer questionId);
    Question findById(Integer questionId);
    String createQuestion(Question question);

    String updateQuestion(Question question);

    String deleteQuestion(Integer questionId);

    Page findAll(Pageable pageable);

    Page findByDegree(String degree, Pageable pageable);

    Page findByName(String title, Pageable pageable);

    Integer findQuestionNums();
}
